<template>
  <div class="ai-chat-container">
    <div class="chat-intro">
      <div class="intro-content">
        <img src="https://www.zmxai.com/pc/_nuxt/img/logo.5ef6287.png" alt="Logo" class="intro-logo">
        <div class="intro-text">
          <p><strong>Hi，我是小冰，你的专属助手～</strong></p>
          <p class="subtitle">很高兴遇见你！我可以回答你的各种问题，试试来问我吧</p>
        </div>
      </div>
    </div>
    <div class="input-container">
      <div class="input-wrapper">
        <textarea v-model="message" class="chat-input" placeholder="输入你的问题..." rows="3"></textarea>
        <button class="send-btn">发送</button>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'

const message = ref('')
</script>

<style scoped>
.ai-chat-container {
  height: 100%;
  background: linear-gradient(to bottom, #e8fcf1 20%, #f2fef7 40%, #f9fff9 60%, #f0f0f0 80%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 50px;
  padding-bottom: 100px;
}

.chat-intro {

  text-align: left;
  color: #333;
  font-size: 18px;
  line-height: 1.6;
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
}

.intro-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.chat-intro strong {
  font-size: 24px;
}

.chat-intro .subtitle {
  color: #666;
}

.input-container {
  position: fixed;
  bottom: 0;
  left: 300px;
  right: 0;
  padding: 20px;
  
}

.input-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.chat-input {
  width: 100%;
  min-height: 80px;
  padding: 15px 80px 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  resize: none;
  outline: none;
  background: #f9fff9;
  border-radius: 25px;
}

.send-btn {
  position: absolute;
  right: 15px;
  bottom: 15px;
  background: linear-gradient(312deg, #67eb94, #3bb2f5);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}
</style>